package com.pap.car.info.auto.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.pap.base.mapper.PapBaseMapper;
import com.pap.car.agent.dto.CarInfoTreeDTO;
import com.pap.car.info.auto.entity.Car;;

public interface CarMapper extends PapBaseMapper<Car> {
	int deleteByPrimaryKey(String id);

	int selectCountByMap(Map<Object, Object> map);

	List<Car> selectListByMap(Map<Object, Object> map);

	Car selectByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

	int deleteByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

	int insert(Car record);

	int insertSelective(Car record);

	Car selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(Car record);

	int updateByPrimaryKey(Car record);
	
	// alexgaoyh 
	List<CarInfoTreeDTO> selectRootCarInfo(@Param("parentId") String parentId, @Param("clientLicenseId") String clientLicenseId);
	
	List<CarInfoTreeDTO> selectTreeNode(Map<Object, Object> map);
}